package service;

public class Service {
    private String database;
    private String username;
    private String password;
    private int id;
    protected String[] save(String username,String password){
        String save[]=new String[2];
        save[0]=username;
        save[1]=password;
        return save;
    }
    public String[] save(){
        return this.save(this.getUsername(),this.getPassword());
    }
    protected int del(int id){
        return  id;
    }
    public int delNum(){
        return del(this.getId());
    }
    protected int edit(int id){
        return id;
    }
    public int editNum(){
        return edit(this.getId());
    }
    protected String[] edit(String username,String password){
        String edit[]=new String[2];
        edit[0]=username;
        edit[1]=password;
        return edit;
    }
    public String[] edit(){
        return edit(this.getUsername(),this.getPassword());
    }
    public String getDatabase() {
        return database;
    }
    protected String query(String username){
        return username;
    }
    public String query(){
        return this.query(this.getUsername());
    }
    public void setDatabase(String database) {
        this.database = database;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
